package com.ghh.log;

import java.util.logging.Logger;

import junit.framework.TestCase;

public class CommonLogTest extends TestCase {
	static {
		System.setProperty("java.util.logging.config.file", CommonLogTest.class.getResource("/logging.properties").getFile());
	}
	private static Logger logger = Logger.getLogger("CommonLogTest");
	public void testLogger() {
//		System.setProperty("java.util.logging.SimpleFormatter.format", "%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS %4$s %2$s %5$s%6$s%n");
		System.out.println(CommonLogTest.class.getResource("/logging.properties").getFile());
//		Log log = LogFactory.getLog(this.getClass());
		logger.info("this is info");
		logger.warning("this is warn");
	}
}
